package com.pwrd.sframe.core;

import com.sun.istack.internal.NotNull;

/**
 * @Auther syc.
 * @Date 2017/3/1 16:37.
 */
public class CallInfo {
    @NotNull
    public String nodeKey;
    @NotNull
    public String portKey;
    @NotNull
    public String serviceKey;


    /**
     * 接受调用的节点信息
     * @param nodeKey
     * @param portKey
     * @param serviceKey
     */
    public CallInfo(String nodeKey, String  portKey, String serviceKey) {
        this.nodeKey = nodeKey;
        this.portKey = portKey;
        this.serviceKey = serviceKey;
    }

    /**
     * 发起调用的节点信息
     * @param nodeKey
     * @param portKey
     */
    public CallInfo(String nodeKey, String  portKey) {

        this.nodeKey = nodeKey;
        this.portKey = portKey;
    }
}
